Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ufe 0.4.8: Add classifications and metadata to def #2315

Merged
merged 6 commits into from
May 11, 2022

Conversation

JGamache-autodesk
Copy link
Collaborator

Ufe 0.4.8 has multiple changes to improve NodeDef discovery:

NodeDef:

  • Expose read-only interface to query node classifications (allows
    sorting them in a node picker)
  • Expose read-only metadata API (limited to known USD metadata tags at
    the moment)
  • Remove internally kept data. Everything is built on-the-fly from the
    SdrShaderNode information
  • Expanded the port API to allow name discovery and single port queries

AttributeDef:

  • The base class in Ufe is now a full interface. Added an implementation
    for USD that returns the information directly from the associated
    SdrShaderProperty
  • Expose read-only metadata API (limited to known USD tags at the
    moment)

Ufe 0.4.8 has multiple changes to improve NodeDef discovery:

NodeDef:
- Expose read-only interface to query node classifications (allows
  sorting them in a node picker)
- Expose read-only metadata API (limited to known USD metadata tags at
  the moment)
- Remove internally kept data. Everything is built on-the-fly from the
  SdrShaderNode information
- Expanded the port API to allow name discovery and single port queries

AttributeDef:
- The base class in Ufe is now a full interface. Added an implementation
  for USD that returns the information directly from the associated
  SdrShaderProperty
- Expose read-only metadata API (limited to known USD tags at the
  moment)
@JGamache-autodesk JGamache-autodesk added the ufe Related to UFE component in Maya label Apr 27, 2022
Copy link
Collaborator

@ppt-adsk ppt-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments sprinkled in, but I am very hopeful we can get rid of 0.4.8 checks in favor of 0.4.10 checks, as UFE 0.4.8 and 0.4.9 will never be released publicly, unless I'm mistaken.


Ufe::AttributeDef::ConstPtr UsdShaderNodeDef::output(const std::string& name) const
{
if (fShaderNodeDef) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these two if conditions be combined? Unless of course you follow Pierre's suggestion of removing the nullptr check.

@JGamache-autodesk JGamache-autodesk added the ready-for-merge Development process is finished, PR is ready for merge label May 6, 2022
@seando-adsk seando-adsk merged commit 149c81e into dev May 11, 2022
@seando-adsk seando-adsk deleted the t_gamaj/expose_nodedef_classifications branch May 11, 2022 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge ufe Related to UFE component in Maya
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants